package com.mbl.base.modular.mall.service;

import com.mbl.base.modular.mall.entity.GoodsProduct;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 商品货品表 服务类
 * </p>
 *
 * @author lwj
 * @since 2020-02-27
 */
public interface IGoodsProductService extends IService<GoodsProduct> {

    /**
     * 减库存
     * @param productId
     * @param number
     * @return
     */
    int reduceStock(Long productId, Integer number);

    /**
     * 增库存
     * @param productId
     * @param number
     * @return
     */
    int addStock(Long productId, Integer number);
}
